package cn.easybuymember.dao.user;

import cn.easybuymember.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    int insert(User user) throws Exception ;

    int login(User user);

    List<User> selectAllByLimit(@Param("limit1") int limit1,@Param("limit2") int limit2, @Param("name")String name);

    int count(@Param("userName")String userName);

    int delUser(@Param("id")int id)throws Exception;

    int updUser(User user)throws Exception;

    int  updPassWord(@Param("password")String password,@Param("userId")int userId ) throws Exception;

    User sel(@Param("userId")int userId);
}
